<!DOCTYPE html>
<html>

<head><meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>冷心云内部上传系统V2021.1</title>
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
<link href="./static/css/magicalcoder.css" rel="stylesheet"/>
<!-- <script src="./static/js/json3.min.js"></script>
<script src="./static/js/echarts.min.js"></script>
<script src="./static/js/dataTool.min.js"></script> -->
<script src="./static/js/layui.all.js"></script>
<script src="./static/js/common.js"></script>
<script src="./static/js/magicalcoder.js"></script>
<style>

</style>

</head>
<body  class="layui-form">
<div id="magicalDragScene" class="mc-root" style="background-color: rgb(242, 242, 242); top: 0px; padding: 20px;" mcnetline="0">
	<blockquote class="layui-elem-quote layui-quote-nm layui-bg-green">
     [ ~ ] 欢迎访问：冷心云内部上传系统V2021.1[ ~ ]
</br>[ ~ ] 请遵守法律法规，不要上传违规文件！[ ~ ]
</br>[ ~ ] 本接口只对内部开放，请不要发给其他人！[ ~ ]
</blockquote>
<blockquote>
    <a href=""><button type="button" class="layui-btn layui-btn-danger">问题反馈</button></a>
	<a href="/filesee.html"><button type="button" class="layui-btn layui-btn-warm">文件列表</button></a>
    <a href="https://qm.qq.com/cgi-bin/qm/qr?k=l709E4iF6Znz-tmjGhqdra0iaDVtDbXY&authKey=lr3w8TLe/wm38z/2VoskkHaV5khWslY/QyLNPblCz8EbMQsJRby22OAx2eY4bzNC&noverify=0"><button type="button" class="layui-btn layui-btn-normal">加入交流群</button></a>
</blockquote>
	<div class="layui-tab layui-bg-white layui-tab-brief">
		<ul class="layui-tab-title">
            <?php if($do == 'login'): ?>
            <li class="magicalcoder-tab-title <? echo $this_1; ?>">登录</li>
            <?php endif; ?>
            <?php if($do == 'info'): ?>
            <li class="magicalcoder-tab-title <? echo $this_1; ?>">平台</li>
            <?php endif; ?>
			<li class="magicalcoder-tab-title <? echo $this_2; ?>">普通上传</li>
			<li class="magicalcoder-tab-title <? echo $this_3; ?>">MD5上传</li>
		</ul>
		<div class="layui-tab-content">
			<div class="layui-tab-item <? echo $show_1; ?>">
                
                <?php if($do == 'login'): ?>
				<form class="layui-form" action="login.php" method="POST">
					<div class="layui-form-item">
						<input name="username" class="layui-input" style="margin-top: 0px; margin-bottom: 10px;" type="text" autocomplete="off" placeholder="请输入您的用户名"/>
						<input name="password" class="layui-input" style="margin-bottom: 10px; width: 100%;" type="password" autocomplete="off" placeholder="请输入您的密码"/>
						<button class="layui-btn layui-btn-fluid" type="submit">登录</button>
					</div>
                </form>
                <?php endif; ?>
                <?php if($do == 'info'): ?>
                <!--
                    <div id="magicalDragScene" class="mc-root">
                    <div class="magicalcoder-table" mc-attr-bool-loading="false" mc-attr-str-url="/file_ck.php" mc-attr-str-toolbar="#tableToolbar" mc-attr-json-default-toolbar="[&quot;exports&quot;,&quot;filter&quot;,&quot;print&quot;]" mc-attr-str-size="lg" mc-attr-str-title="平台记录" mc-attr-num-limit="10" mc-attr-bool-page="true" mc-attr-bool-total-row="false" mc-attr-bool-even="true">
                        <span class="magicalcoder-table-th layui-hide" mc-attr-str-field="time" mc-attr-bool-sort="true" mc-attr-bool-hide="false">时间</span>
                        <span class="magicalcoder-table-th layui-hide" mc-attr-str-field="name">文件标识</span>
                        <span class="magicalcoder-table-th layui-hide" mc-attr-str-field="description">文件地址</span>
                    </div>
                </div>
                -->
                <table id="table" lay-filter="table"></table>
                <?php endif; ?>
			</div>
			<div class="layui-tab-item <? echo $show_2; ?>">
				<form class="layui-form" action="upload_file_diy.php" method="post" enctype="multipart/form-data">
					<div class="layui-form-item">
						<label class="layui-form-label">文件标记</label>
						<div class="layui-input-block">
							<input name="filecode" class="layui-input" type="text" autocomplete="off" placeholder="中文"/>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">目录名称</label>
						<div class="layui-input-block">
							<input name="drivename" class="layui-input" type="text" autocomplete="off" placeholder="英文/数字"/>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">ZIP解压</label>
						<input name="switch" type="checkbox" lay-skin="switch" lay-text="解压"/>
					</div>
					<div class="layui-form-item">
						
						<input name="file" id="file" class="form-control-file" type="file"/>
					</div>
					<div class="layui-form-item">
                        <input name="do" value="diy" style="display:none"/>
						<button class="layui-btn layui-btn-fluid" type="submit">提交</button>
					</div>
				</form>
			</div>
			<div class="layui-tab-item <? echo $show_3; ?>" >
				<form class="layui-form" action="upload_file_md5.php" method="post" enctype="multipart/form-data">
					<div class="layui-form-item">
						<label class="layui-form-label">文件标记</label>
						<div class="layui-input-block">
							<input name="name" class="layui-input" type="text" autocomplete="off" placeholder="（必填）"/>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">目录名称</label>
						<div class="layui-input-block">
							<input class="layui-input" type="text" autocomplete="off" disabled placeholder="（自动）获取文件MD5，自动覆盖"/>
						</div>
					</div>
					<div  class="layui-form-item">
						<label class="layui-form-label">ZIP解压</label>
						<input name="switch" type="checkbox" lay-skin="switch" lay-text="解压"/>
					</div>
					<div  class="layui-form-item">
						<input name="file" id="file" class="form-control-file" type="file"/>
					</div>
					<div  class="layui-form-item">
                        <input name="do" value="md5" style="display:none"/>
						<button class="layui-btn layui-btn-fluid" type="submit">提交（自动获取MD5）</button>
					</div>
				</form>
			</div>

		</div>
	</div>
</div>
<script src="index.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/layui/2.5.7/layui.all.js"></script>
<script>
    layui.use('table', function(){
      var table = layui.table;
      
      //第一个实例
      table.render({
        elem: '#table'
        ,url: '/file_ck.php' //数据接口
        ,cols: [[ //表头
      {field: 'time', title: '时间', sort: true, fixed: 'left'}
      ,{field: 'name', title: '文件标识', sort: true}
      ,{field: 'description', title: '地址', sort: true}
    ]]
    ,page: true //开启分页
    ,request: {
    pageName: 'page' //页码的参数名称，默认：page
    ,limitName: 'nums' //每页数据量的参数名，默认：limit
  }
    });
  
});
</script>
</body>

</html>